#-*- coding:utf-8 -*-
__author__ = 'liangjian'


myproject = {
    "Title": u"OPENLUAT 版本发布工具",
    "Verson": "1.0.2",
    "version" : "1.0.2.2017.0614.1126",
    "description" :u"OPENLUAT IMEI 信息查询工具",
    "name": "functional testing tools",
}
#export LD_LIBRARY_PATH=/usr/local/lib
if __name__ == "__main__":

    s_list = []
    s_list.append( "python.exe mysetup.py py2exe -d \"" + myproject["Title"] + " " + myproject["Verson"]+ "\"")
    s_list.append( "cd \"" + myproject["Title"] + " " + myproject["Verson"] + "\"")
    s_list.append( "del " + myproject["Title"] + ".exe")
    s_list.append( "ren main_IP.exe " +  myproject["Title"] + ".exe")

    sstr = "\r\n".join(s_list)
    fw = open("py2exe.bat","w")
    try:
        fw.write(sstr.encode("gbk"))
    finally:
        fw.close()